package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.Unsubscribe;
import com.ruoyi.system.mapper.UnsubscribeMapper;
import com.ruoyi.system.service.UnsubscribeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UnsubscribeServiceImpl implements UnsubscribeService {

    @Autowired
    private UnsubscribeMapper unsubscribeMapper;

    @Override
    public List<Unsubscribe> selectUnsubscribeList(Unsubscribe unsubscribe) {
        return unsubscribeMapper.selectUnsubscribeList(unsubscribe);
    }

    @Override
    public int insertUnsubscribe(Unsubscribe unsubscribe) {
        return unsubscribeMapper.insertUnsubscribe(unsubscribe);
    }

    @Override
    public int updateUnsubscribe(Unsubscribe unsubscribe) {
        return unsubscribeMapper.updateUnsubscribe(unsubscribe);
    }

    @Override
    public int deleteUnsubscribe(String numberId) {
        return unsubscribeMapper.deleteUnsubscribe(numberId);
    }
}
